home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2337 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: asterix.urc.tue.nl!buex95a
  2. From: buex95a@asterix.urc.tue.nl (Marcel van Kervinck)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Must I free my linked lists? (GCC)
  5. Date: 30 Jan 1996 10:18:02 GMT
  6. Organization: Eindhoven University of Technology, The Netherlands
  7. Message-ID: <4ekr8q$igs@tuegate.tue.nl>
  8. References: <4dudic$aif@vixen.cso.uiuc.edu> <4e2mrt$bc6@iss1.neckar-alb.de> <volker.0eqv@vb.franken.de> <4e835q$rej@tuegate.tue.nl> <volker.0et1@vb.franken.de>
  9. NNTP-Posting-Host: asterix.urc.tue.nl
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Volker Barthelmann (volker@vb.franken.de) wrote:
  13. : Marcel van Kervinck (buex95a@asterix.urc.tue.nl) wrote:
  14. : : Volker Barthelmann (volker@vb.franken.de) wrote:
  15. : :
  16. : : : Probably all Amiga C libraries have a malloc() that frees all memory
  17. : : : after program termination, but no C compiler is required to do it.
  18. : :
  19. : : Wrong. They _are_ required to free the memory allocated by
  20. : : malloc and it's brothers. K&R II states so.
  21.  
  22. : I couldn't find this in K&R. Please quote what it says.
  23.  
  24. : If K&R really says this, it's an error in K&R AFAIK.
  25.  
  26. I was mistaken with my statement. I didn't expect it to be listed
  27. under malloc() or free() in K&R btw.  I thought exit() mentioned it.
  28. I just checked it today and it just mentions the flushing and closing
  29. of files and streams. Not the freeing of memory.
  30. Apologies for the fuzz...
  31.  
  32.     Marcel
  33. --  _   _
  34.   _| |_|_|
  35.  |_    |_     Marcel van Kervinck
  36.          |_|  buex95a@urc.tue.nl
  37.